Carbon


MPBlockClear

Header: Multiprocessing.h Carbon status: Supported

Clears a block of memory.

void MPBlockClear (
    LogicalAddress address, 
    ByteCount size
);
Parameter descriptions
address

The starting address of the memory block you want to clear.

size

The number of bytes you want to clear.

DISCUSSION

As with all shared memory, your application must synchronize access to the memory blocks to avoid data corruption. MPBlockClear ensures the clearing stays within the bounds of the area specified by size, but the calling task can be preempted during the copying process.

VERSION NOTES

Introduced with Multiprocessing Services 2.0.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.1 or later.


© 2000 Apple Computer, Inc. (Last Updated 7/13/2000)